<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = Array.of(10,"张三丰",true,undefined,null,5);
        // console.log(arr);

        let obj = {
            0:"abc",
            1:"def",
            length:2
        }
        let objArr = Array.from(obj);
        // console.log(obj instanceof Array)
        // console.log(objArr instanceof Array)

        let arr2 = [1,2,3,4,5];
        let ret = arr2.find(function(item,idx,arr){
            // return item>5
            return item>3
        });
        // console.log(ret);

        let ret1 = arr2.findIndex(function(item,idx,arr){
            // return item>5
            // return item>3
            return idx>3
        })
        console.log(ret1);


        let wml = {
                name:"王美丽",
                age:18,
                gender:"woman"
            }
        let arr3 = [
            {
                name:"张三",
                age:18,
                gender:"man"
            },
            {
                name:"李四",
                age:18,
                gender:"man"
            },
            {
                name:"王五",
                age:18,
                gender:"man"
            },
            wml,
        ]
        let ret4 = arr3.findIndex(function(item,idx,arr){
            // return item.gender == "woman"
            return item.gender == "man"
        })
        console.log(ret4);
        console.log(arr3[ret4]);

        console.log(arr3.includes({}));
        console.log(arr3.includes(wml))
        console.log(arr3.includes({
                name:"李四",
                age:18,
                gender:"man"
            }))
        console.log(arr3.includes( {
                name:"王美丽",
                age:18,
                gender:"woman"
            }))
    </script>
    
</body>
</html>